﻿using M.AuditField;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace M.ShopMachine.Domain
{
    /// <summary>
    /// 车间机床关系表
    /// </summary>
    [Table("ShopMachineRelation")]
    public class ShopMachineRelation: AuditFields
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 车间id
        /// </summary>
        public int? WorkshopId { get; set; }
        /// <summary>
        /// 机床id
        /// </summary>
        public int? DeviceId { get; set; }
    }
}
